import Home from '../view/Home'
import Class from '../view/Class'
import Shop from '../view/Shop'
import My from '../view/My'
import Ent from '../view/Ent'
import { Navigate } from 'react-router-dom'
const routes = [
    {
        path: '/', element: <Navigate to='/home' />,
    },
    {
        path: '/home', element: <Home />,
    },
    {
        path: '/class', element: <Class />,
        children: [
            {
                path: '/ents', element: <Ent />
            }
        ]
    },
    {
        path: '/Shop', element: <Shop />,
    },
    {
        path: '/My', element: <My />,
    },
]
export default routes